<?
$news=$newModule->getNews(1,10,"","4");
?>
<li id="page_NEW">
    <div class="slogan">Tin Tức</div>
    <div class="box">
        <div class="col7">
            <h2>Coffee News</h2>
            <br/>
            <div class="scroll-pane" style="height: 380px">
                <?
                foreach($news as $new){
                    if($new["image"]) $small_img=$new["image"];
                    if($new["small_image"]) $small_img=$new["small_image"];
                    $insert = new DateTime($new["insert"]);
                ?>
                <div class="new-item brief" style="position: relative">
                    <?
                    if($small_img){
                    ?>
                    <div class="img-news" style="">
                        <div class="time_block" style="position: absolute;top: 4px;left: 4px;">
                            <?=date_format($insert,"d")?><br>
                            <span><?=date_format($insert,"M")?></span>
                        </div>
                        <img src="<?=$small_img?>"/>
                    </div>
                    <?
                    }else{
                    ?>
                    <div class="time_block left">
                        <?=date_format($insert,"d")?><br>
                        <span><?=date_format($insert,"M")?></span>
                    </div>
                    <?}?>
                    <h4><a><?=$new["title"]?></a></h4>
                    <p>
                        <?=$new["brief"]?>
                    </p>
                    <a href="#!/page_MORE" class="button-more" 
                       onclick="loadmore('<?=$new["id"]?>');"
                       style="position: absolute;bottom: 16px;right: 30px">Chi Tiết</a>
                </div>
                <div class="clear"></div>
                <?}?>




            </div>
        </div>
<!--    <div class="col6 pad_left5">

    <h2>Quy trình chăm sóc Cà Phê bền vững</h2>

    <div class="gal1">
    <div class="photo1 ">
    <a href="http://www.petecof.vn/images/stories/minhhoa/caphe48_jvlastnews_thumb_jvlastnews_thumb.jpg"
    rel="prettyPhoto[pp_gal1]" title="Photo Title">
    <img src="http://www.petecof.vn/images/stories/minhhoa/caphe48_jvlastnews_thumb_jvlastnews_thumb.jpg" class="border1 border2 radius1">
    <span></span>
    </a>
    </div>
    <strong>
    <a href="#"> Sản phẩm an toàn và có chất lượng.</a>                                                
    </strong>
    <p class="text">
    Proin feugiat sem eu nisl. Aliquam erat volutpat. Fusce a mauris vel nulla faucibus tempor. Aenean scelerisque neque aliquam nibh venenatis molestie. Integer gravida ornare lectus. Nunc vehicula elit a tellus. 
    </p>
    <a href="#!/page_MORE" class="button1"><span></span><strong>read more</strong></a> 
    <div class="clear"></div> 
    </div>

    <div class="gal1">
    <div class="photo1 "><a href="http://uskom.vn/images/HINH%20CAPHE.jpg" rel="prettyPhoto[pp_gal1]" title="Photo Title"><img src="http://uskom.vn/images/HINH%20CAPHE.jpg" class="border1 border2 radius1"><span></span></a></div>
    <strong>
    <a href="#">An toàn cho người sản xuất.</a>                                                
    </strong>
    <p class="text">
    Proin feugiat sem eu nisl. Aliquam erat volutpat. Fusce a mauris vel nulla faucibus tempor. Aenean scelerisque neque aliquam nibh venenatis molestie. Integer gravida ornare lectus. Nunc vehicula elit a tellus. 
    </p>
    <a href="#!/page_MORE" class="button1"><span></span><strong>read more</strong></a> 
    <div class="clear"></div> 
    </div>

    <div class="gal1">
            <div class="photo1 "><a href="http://vnexpress.net/Files/Subject/3B/A1/EF/D0/ca4.jpg" rel="prettyPhoto[pp_gal1]" title="Photo Title"><img src="images/services03.jpg" class="border1 border2 radius1"><span></span></a></div>
    <strong>
    <a href="#">Bảo vệ môi trường.</a>                                                
    </strong>
    <p class="text">
    Proin feugiat sem eu nisl. Aliquam erat volutpat. Fusce a mauris vel nulla faucibus tempor. Aenean scelerisque neque aliquam nibh venenatis molestie. Integer gravida ornare lectus. Nunc vehicula elit a tellus. 
    </p>
    <a href="#!/page_MORE" class="button1"><span></span><strong>read more</strong></a> 
    <div class="clear"></div> 
    </div>

    <div class="gal1">
            <div class="photo1 "><a href="http://vnexpress.net/Files/Subject/3B/A1/EF/D0/ca2.jpg" rel="prettyPhoto[pp_gal1]" title="Photo Title"><img src="images/services04.jpg" class="border1 border2 radius1"><span></span></a></div>
    <strong>
    <a href="#">Nguồn gốc sản phẩm rõ ràng.</a>                                                
    </strong>
    <p class="text">
    Proin feugiat sem eu nisl. Aliquam erat volutpat. Fusce a mauris vel nulla faucibus tempor. Aenean scelerisque neque aliquam nibh venenatis molestie. Integer gravida ornare lectus. Nunc vehicula elit a tellus. 
    </p>
    <a href="#!/page_MORE" class="button1"><span></span><strong>read more</strong></a> 
    <div class="clear"></div> 
    </div>







    </div>-->
<div class="clear"></div>

    </div>
</li>